package com.ruoyi.train.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.train.mapper.ExamPassStudentMapper;
import com.ruoyi.train.domain.ExamPassStudent;
import com.ruoyi.train.service.IExamPassStudentService;

/**
 * 考试合格学员Service业务层处理
 * 
 * @author wusihao
 * @date 2023-04-16
 */
@Service
public class ExamPassStudentServiceImpl  extends ServiceImpl<ExamPassStudentMapper, ExamPassStudent> implements IExamPassStudentService
{
    @Autowired
    private ExamPassStudentMapper examPassStudentMapper;

    /**
     * 查询考试合格学员
     * 
     * @param id 考试合格学员主键
     * @return 考试合格学员
     */
    @Override
    public ExamPassStudent selectExamPassStudentById(Long id)
    {
        return examPassStudentMapper.selectExamPassStudentById(id);
    }

    /**
     * 查询考试合格学员列表
     * 
     * @param examPassStudent 考试合格学员
     * @return 考试合格学员
     */
    @Override
    public List<ExamPassStudent> selectExamPassStudentList(ExamPassStudent examPassStudent)
    {
        return examPassStudentMapper.selectExamPassStudentList(examPassStudent);
    }

    /**
     * 新增考试合格学员
     * 
     * @param examPassStudent 考试合格学员
     * @return 结果
     */
    @Override
    public int insertExamPassStudent(ExamPassStudent examPassStudent)
    {
        return examPassStudentMapper.insertExamPassStudent(examPassStudent);
    }

    /**
     * 修改考试合格学员
     * 
     * @param examPassStudent 考试合格学员
     * @return 结果
     */
    @Override
    public int updateExamPassStudent(ExamPassStudent examPassStudent)
    {
        return examPassStudentMapper.updateExamPassStudent(examPassStudent);
    }

    /**
     * 批量删除考试合格学员
     * 
     * @param ids 需要删除的考试合格学员主键
     * @return 结果
     */
    @Override
    public int deleteExamPassStudentByIds(Long[] ids)
    {
        return examPassStudentMapper.deleteExamPassStudentByIds(ids);
    }

    /**
     * 删除考试合格学员信息
     * 
     * @param id 考试合格学员主键
     * @return 结果
     */
    @Override
    public int deleteExamPassStudentById(Long id)
    {
        return examPassStudentMapper.deleteExamPassStudentById(id);
    }
}
